#!/bin/bash

numRobots=("0" "1815" "1842" "1943" "1964" "1967" "1974")
ipRobots=( "0" "10:00:E8:6C:A2:F8" "10:00:E8:6C:A1:E0" "10:00:E8:6C:A2:ED"
"10:00:E8:6C:A2:DA" "10:00:E8:6C:A1:93" "10:00:E8:6C:A2:BB")

sleep 0.5

for i in `seq 1 6`; do
    echo connectando o robot ${numRobots[$i]} ao Computador    
    sudo rfcomm connect ${i} ${ipRobots[${i}]} &
    sleep 0.5
done

sleep 0.5


